package com.tobestronger.shouxiespringframework.context;

import com.tobestronger.shouxiespringframework.beans.BeansException;

public interface ConfigurableApplicationContext extends ApplicationContext {

    /**
     * 刷新容器
     *
     * @throws BeansException
     */
    void refresh() throws BeansException;

    /**
     * 注册JVM关闭时的回调操作
     */
    void registerShutdownHook();

    /**
     * 关闭上下文
     */
    void close();

}
